import rootReducer from '../reducers';
import thunk from 'redux-thunk';
import {applyMiddleware, createStore} from 'redux';
import { createLogger } from 'redux-logger';


const logger = createLogger();

const middleware = applyMiddleware(thunk,logger);

const store = createStore(
    rootReducer,
    middleware
)

export default store;
